<?php
namespace app\tools\lib;
use think\Session;
/**
* 
*/
class Token 
{
    public static function createToken($formAction = null,$key=''){
        $random = random_code(8,true,true);
        if(empty($formAction)){
            return false;
        }
        $token  = base64_decode($formAction.':'.$random);
        //Session::set($formAction,$token);
        return $token;
    }

    public static function getToken(){
        
    }
}